<tc_include file="Public:head" />
<div class="container" id="container">
    <div class="page">
        <div class="page__bd" style="height: 100%; overflow: hidden;">
            <div class="weui-tab">
                <div class="weui-tab__panel">
                    <p class="un-lineheight">
                        <img src="<php>echo '/'.C('UPLOADPATH').$banner['banner_img']</php>" alt="">
                    </p>
                    <!--menu-->
                    <div class="weui-flex menu">
                        <a href="{:U('Index/shop_discount')}" class="weui-flex__item">
                            <div><i class="icon iconfont icon-deals"></i>店铺优惠<span>Store Deals</span></div>
                        </a>
                        <a href="{:U('Index/member_discount')}" class="weui-flex__item">
                            <div><i class="icon iconfont icon-user"></i>会员优惠<span>Member Exclusive Deals</span></div>
                        </a>
                    </div>
                    <!--menu end-->

                    <div class="weui-panel weui-panel_access">
                        <!--countlist-->
                        <div class="weui-panel__bd count-list">

                            <volist name="activitys" id="activity">
                                <a href="{:U('Index/activity_detail',array('id'=>$activity['id']))}" class="weui-media-box weui-media-box_appmsg">
                                    <div class="weui-media-box__hd big">
                                        <img class="weui-media-box__thumb" src="<php>echo '/'.C('UPLOADPATH').$activity['activity_icon']</php>" alt="">
                                    </div>
                                    <div class="weui-media-box__bd">
                                        <p class="media-logo-box">


                                            <img src="<php>echo '/'.C('UPLOADPATH').$activity['merchant']['logo']</php>">
                                            <span>
                                                <samp>
                                                    <if condition="$activity['activity_brand_type'] eq 1 ">[品牌]
                                                    <elseif condition="$activity['activity_brand_type'] eq 2 "/>[商户]
                                                    <elseif condition="$activity['activity_brand_type'] eq 3 "/>[联合]
                                                    </if>
                                                </samp>
                                                优惠信息
                                            </span>
                                        </p>
                                        <h4 class="weui-media-box__title">{$activity['activity_title']}</h4>
                                        <p class="weui-media-box__time">
                                            有效期至{$activity['activity_end_time']|strtotime|date="Y.m.d",###}
                                            <span class="weui-btn weui-btn_go"><i class="icon iconfont icon-website"></i> 去那里</span>
                                        </p>
                                    </div>
                                </a>
                            </volist>
                        </div>
                        <!--countlist end-->
                    </div>
                </div>

                <tc_include file="Public:menu" />
            </div>
        </div>
    </div>
</div>
<tc_include file="Public:footer" />
